Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicorn: Revert limitation of JPY only ( add limitation of accountId ) #2277

Merged
merged 6 commits into from
Jun 23, 2022

Conversation

faithnh
Copy link
Contributor

@faithnh faithnh commented Jun 20, 2022

  • Revert limitation of JPY only.
  • Return error if accountId is not parsed.
  • Fix bug that acccountId set zero in modifyImps when not have accountId.

#2265 (comment)

@SyntaxNode SyntaxNode changed the title Revert limitation of JPY only ( add limitation of accountId ) Unicorn: Revert limitation of JPY only ( add limitation of accountId ) Jun 20, 2022
@@ -191,8 +174,9 @@ func setSourceExt() json.RawMessage {
func setExt(request *openrtb2.BidRequest) (json.RawMessage, error) {
accountID, err := jsonparser.GetInt(request.Imp[0].Ext, "bidder", "accountId")
if err != nil {
accountID = 0
return nil, fmt.Errorf("accountId field is required")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add coverage for this line?

Copy link
Contributor Author

@faithnh faithnh Jun 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line was not able to pass, so investigated it.

I found bug that acccountId set zero in modifyImps when not have accountId.

So i fixed it, and added test case that not have accountId.

This line is passed now.

4b0121f

Copy link
Contributor

@VeronikaSolovei9 VeronikaSolovei9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the update, lgtm

Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mansinahar mansinahar merged commit 960795d into prebid:master Jun 23, 2022
wwwyyy pushed a commit to wwwyyy/prebid-server that referenced this pull request Jul 5, 2022
* 'master' of https://github.com/wwwyyy/prebid-server:
  Read imp[].ext.tid, fix PBJS 7.3.0 compatibility (prebid#2283)
  New Adapter: Kargo (prebid#2268)
  VIS.X updated endpoint parameters (prebid#2282)
  New Adapter: InfyTV (prebid#2278)
  Support adapters to set seat for a bid (prebid#2266)
  VIS.X: add X-Forwarded-For header (prebid#2279)
  Unicorn: Revert limitation of JPY only ( add limitation of accountId ) (prebid#2277)
jorgeluisrocha pushed a commit to jwplayer/prebid-server that referenced this pull request Sep 28, 2022
shunj-nb pushed a commit to ParticleMedia/prebid-server that referenced this pull request Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants